#-----------------------------------------------------------------------------
# File Name: makefile
# Description
# -----------
# This is the makefile for the PayOut project.
#
#-----------------------------------------------------------------------------
SHELL 		= /bin/sh

EXECUTABLES	= PayOut

#-- Compiler Flags for producing debug version of application ----------------
#-- Uncomment the CFLAGS below and comment the Release CFLAGS ----------------

#CFLAGS		:= -g -Wall -pedantic -Wstrict-prototypes -D_GNU_SOURCE -std=c99

#-- Release Compiler Flags ---------------------------------------------------

CFLAGS		:= -O2 -g0 -Wall -pedantic -Wstrict-prototypes -std=c99
CFLAGS		+= -pipe -fomit-frame-pointer -D_GNU_SOURCE

#-- Required libraries -------------------------------------------------------

LIBS		 = -lm -lrt -laes_ftdi -laes_access -lftd2xx -lstdc++ 

#-- Dependencies -------------------------------------------------------------

OBJS = PayOut.o 

#-- Compile All --------------------------------------------------------------

.PHONEY: all
all: 	$(EXECUTABLES)

#-- Clean Up -----------------------------------------------------------------

.PHONEY: clean
clean:

	rm -f *.[bo]
	rm -f *.err
	rm -f $(EXECUTABLES)

#-- Build targets ------------------------------------------------------------

PayOut: $(OBJS)
		$(CC) $(OBJS) $(CFLAGS) $(LIBS) -o $@

#------------------------------ END OF FILE ----------------------------------

